package cqueue;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import cqueue.firing.FireService;
import cqueue.posting.PostService;

/**
 * 
 * @author Kristopher L. Kalish, James Madison University
 * @version 1 - March 29, 2008
 *
 */
public class ListenerEventQueue extends EventQueue<ListenerEvent>
{
	protected List<EventListener> listeners;
	
	public ListenerEventQueue()
	{
		super();
		listeners = Collections.synchronizedList(new ArrayList<EventListener>());
	}
	
	public void addListener(EventListener listener)
	{
		listeners.add(listener);
	}
	
	public void removeListener(EventListener listener)
	{
		listeners.remove(listener);
	}
}
